package com.tzbank.wisdom.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.tzbank.wisdom.service.CreditService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 信用卡控制器
 *
 */
@Api(tags={"信用卡控制器"})
@RequestMapping("credit")
@RestController
public class CreditController {
    
	@Autowired
    private CreditService creditService;
	
	/**
	 * 贷记卡自动还款协议签约
	 * @param 
	 * @return
	 */
    @ResponseBody
    @PostMapping(value="/autoSign")
    @ApiOperation(value = "贷记卡自动还款协议签约", notes = "贷记卡自动还款协议签约接口")
    public Map<String,Object> antoSign(@RequestBody Map<String,String> reqBody) {
    	return creditService.creditAutoPaySign(reqBody);
    }

    
}
